4 ' DO NOT DELETE LINES 5 THROUGH 100 UNDER *ANY* CIRCUMSTANCES
5 ' **********************************
6 ' ********* VERSION III OF *********
10 ' **********************************
20 ' ***** WARGAMES DIALER DELUXE *****
30 ' **********************************
40 ' Written By: == PAUL LEVY ==
45 ' Revisions By: -= Steve Klein =-
47 ' Revisions By: -= Richard Reisbick =-
48 ' Revisions By: -= David Gruehn =-
50 ' **********************************
60 ' Program designed for the HAYES
70 ' Smartmodem or compatible.
75 ' ++++++++++++++++++++++++++++++++++
80 ' REM's added for convienience to
85 ' ease the task for later revisions.
90 ' If you make revisions please
91 ' increase the version # by 1 and
92 ' add your name to the others. My
93 ' revisions (at least the important
94 ' ones) are noted by SK in their
95 ' REM statements. - Steve Klein
96 ' **********************************
97 ' I've taken the original program and just added the fancy
98 ' features. The version 3 just dialed numbers and printed
99 ' the connects as they came. - David Gruehn
100 '
101 ' *********************************
105 '
110 COLOR 7,0:CLS:WIDTH 80:KEY OFF:CLEAR:GOSUB 800:CLOSE
111 NUM1=6 :LINE1=1 :COL1=1 : DIM DIAL$(10) : F1 = 1:Z5$="-": DIM FOUND1(100,4):Q = 18:Y5 = 1:Y6 = 10:DIM FOUND1$(100):F2=1:FE=1
115 XX=1:LOCATE 9,29:PRINT" Version IV of"
120 LOCATE 11,25:COLOR 0,7:PRINT"Deluxe Wargames Dialer":LOCATE 12,26:PRINT"Written by Paul Levy":COLOR 7,0:LOCATE 13,24:PRINT"Revisions by Steve Klein"
125 LOCATE 14,21:PRINT "Revision III by Richard Reisbick"
126 LOCATE 15,23:PRINT "Revision IV by David Gruehn"
130 LOCATE 23,10:PRINT"Press 'I' For Instructions Or Any Other Key To Continue":
140 KE$=INKEY$:IF KE$="" THEN GOTO 140
145 IF KE$="I" OR KE$="i" THEN GOSUB 600:CLS
147 GOSUB 700
148 PRINT:PRINT:PRINT " Please enter the following information "
155 PRINT"Enter The First Three Numbers Or The Area Code And Then The First Three Numbers Of Area/Exchange";E;". ex.: ==> { (XXX)XXX-xxxx OR (xxx)XXX-xxxx}"
160 LINE INPUT "-> ";DIAL$(E)
165 NEXT E
170 PRINT:PRINT "Now Enter The 4th Digit Of The Number. { (xxx)xxx-4xxx OR xxx-4xxx }"
180 INPUT "-";A
190 IF A>9 OR A<0 THEN 170
200 PRINT:PRINT "Now Enter The 5th Digit Of The Number. { (xxx)xxx-x5xx OR xxx-x5xx }"
210 INPUT "-";B
220 IF B>9 OR B<0 THEN 170
230 PRINT:PRINT"Now Enter The 6th Digit Of The Number. { (xxx)xxx-xx6x OR xxx-xx6x }"
240 INPUT "-";C
250 IF C>9 OR C<0 THEN 170
260 PRINT:PRINT "Now Enter The 7th Digit Of The Number. { (xxx)xxx-xxx7 OR xxx-xxx7 }"
385 L=LOF(1) : IF L<230 THEN GOTO 400 ELSE GOTO 380
400 BEEP:IF A1=1 THEN GOTO 405 ELSE GOTO 407
405 OPEN "NUMBERS.DAT" FOR APPEND AS #2:PRINT #2,DIAL$(E);A;B;C;D:CLOSE #2 'Saves number to disk file NUMBERS.DAT- SK
407 IF A2=1 THEN LPRINT "Comp. Found: "DIAL$(E);A;B;C;D: ELSE GOTO 410 'Checks for Printer Yes/No-SK
410 GOSUB 900
415 D=D-1:O1=O1-1:NUM1=NUM1-1
420 COLOR 7,0:PRINT#1,"+++":FOR I1=1 TO 1000:NEXT I1:PRINT#1,"ATH" '*** Hangs up modem-RAR
425 CLOSE #1
430 O1=O1+1:IF O1=O THEN GOTO 1000 'Counts how many #'s have been dialed-SK
435 D=D+1:IF D=10 THEN D=0:C=C+1:IF C=10 THEN C=0:B=B+1:IF B=10 THEN B=0:A=A+1
440 CLOSE #1:NUM1=NUM1+1
441 IF LINE1=5 THEN GOTO 443
442 GOTO 448
443 FOR M = 6 TO 23
445 LOCATE M,1 : PRINT " "
446 NEXT M
447 NUM1=7:LINE1=1
448 IF LINE1 = 1 THEN COL1 = 6
449 IF LINE1 = 2 THEN COL1 = 24
450 IF LINE1 = 3 THEN COL1 = 42
451 IF LINE1 = 4 THEN COL1 = 60
458 LOCATE NUM1,COL1: PRINT DIAL$(E);"-";A;B;C;D:IF NUM1=23 THEN NUM1=6:LINE1=LINE1+1
459 LOCATE 3,74:PRINT(O1+1):GOTO 300
460 A=0:B=0:C=0:D=0:KEY OFF:COLOR 7,0
461 FOR X = 1 TO 4
462 BEEP
463 FOR T = 1 TO 200 : NEXT T
464 NEXT X
465 GOSUB 5000
470 PRINT "This Concludes Session For "DIAL$(E) NUMBERS"
480 IF A2=1 THEN LPRINT "DIALING COMPLETE"
500 END
600 ' The Instructions!-SK ** rev by RAR
605 CLS:PRINT:PRINT:PRINT:PRINT:PRINT"A Wargames Dialer is a program that will scan a certain amount of numers in a":PRINT "range defined by the user (such as the first three numbers in you phone #).":PRINT"It scans these numbers for a modem tone, which
610 PRINT" that there is a":PRINT"computer hooked up. The program then stores the number for later inquiry.":PRINT:PRINT:PRINT"The program will ask you for the number of numbers to be dialed (max. 10,000)":PRINT"and whether or not you want the";
620 PRINT" numbers also saved to a disk file (NUMBERS.DAT).":PRINT"The disk file can be acessed by entering 'TYPE NUMBERS.DAT' while in DOS."
625 PRINT"It will also ask whether or not you have a printer (if you answer 'Y' then":PRINT"please turn it on) and whether or not you want the modem speaker on."
628 PRINT:PRINT:PRINT "It is possible to adjust the time required to make each phone call by":PRINT "changing the variable 'TRY.TIME' to the number of seconds to try.
635 LOCATE 25,25:PRINT"Press Any Key To Continue..."
640 KE$=INKEY$:IF KE$="" THEN GOTO 640 ELSE RETURN
700 ' The Options!- SK
705 CLS:PRINT"How Many Numbers Should Be Scanned? (Max. 10000, Min. 1)";:INPUT O
710 IF O<1 OR O>10000 THEN 700
720 PRINT:PRINT:INPUT "Should The Numbers Also Be Saved To A Disk File? (Y/N)",A$
730 IF A$="Y" OR A$="y" THEN A1=1
740 PRINT:PRINT:INPUT "Do You Want Data Printed As Well As Saved (Y/N)",A$
750 IF A$="Y" OR A$="y" THEN A2=1
760 PRINT:PRINT:INPUT "Do You Want The Modem Speaker On? (Y/N)",A$
770 IF A$="N" OR A$="n" THEN GOTO 780
772 PRINT:PRINT"How many area codes or exchanges do you wish to try ? "
773 INPUT"Maximum of 10";Z
774 ON KEY(6) GOSUB 4000:KEY(6) ON
775 CLS:RETURN
780 OPEN "COM1:"AS 1:PRINT#1,"ATM0":CLOSE:GOTO 772 'turns modem speaker off
800 OPEN "COM1:" AS #1:PRINT#1,"ATS11=40":RETURN 'Sets modem for fast dialing-SK